
CURR_PATH = $(shell pwd)

SUBDIRS := $(CURR_PATH)/oledlib
SUBDIRS += $(CURR_PATH)/pca9685
SUBDIRS += $(CURR_PATH)/ps2
SUBDIRS += $(CURR_PATH)/tm7705
SUBDIRS += $(CURR_PATH)/pcf8575


all: libs
	$(AT)echo "build drivers done"

libs:
	$(AT)echo "SUBDIRS: $(SUBDIRS)"
	$(AT)echo "building drivers libs..."
	$(AT)for dir in $(SUBDIRS); \
	do \
		make -C $$dir;	\
	done
	$(AT)echo "build drivers libs done"


.PHONY: clean
clean:
	$(AT)for dir in $(SUBDIRS); \
	do \
		make clean -C $$dir;	\
	done
